<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 注意引入顺序，先核心再dom，不然会报错 -->
    <!-- 引入核心库 -->
    <script type="text/javascript" src="../js/react.development.js" ></script>
    <!-- 引入dom解析库 -->
    <script type="text/javascript" src="../js/react-dom.development.js" ></script>
    <!-- 引入jsx解析库babel -->
    <script type="text/javascript" src="../js/babel.min.js" ></script>
</head>
<body>
    <div id="test"></div>
    <!-- babel就是jsx的语法 -->
    <script type="text/babel">
        // 下面的写法不要加引号，是虚拟dom的写法
        const vdom = <h1>welcomwttohelloworld</h1>
        // 渲染, 左边是虚拟dom，右边是真实dom
        ReactDOM.render(vdom, document.getElementById("test"))
    </script>
</body>
</html>